package cf.huzpsb.lias;

import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.plugin.Command;

public class MergeCMD extends Command {
    public MergeCMD(String name, String permission, String... aliases) {
        super(name, permission, aliases);
    }

    @Override
    public void execute(CommandSender sender, String[] args) {
        if (args.length != 2) {
            sender.sendMessage("§c请使用/merge <账户/ip> <账户/ip> 来设置关联性!");
        } else {
            Main.merge(args[0].replace(".", "D"), args[1].replace(".", "D"));
            sender.sendMessage("§c成功设置关联!以后他们将被一起封禁!");
        }
        //TODO
    }
}
